package com.emep.changzhi.analyse.entity.datamonitor.day;

import lombok.Data;
import org.springframework.data.cassandra.core.cql.Ordering;
import org.springframework.data.cassandra.core.cql.PrimaryKeyType;
import org.springframework.data.cassandra.core.mapping.Column;
import org.springframework.data.cassandra.core.mapping.PrimaryKeyColumn;
import org.springframework.data.cassandra.core.mapping.Table;

import java.io.Serializable;

/**
 * @author yangj
 * @version V1.0
 * @Description: 餐饮油烟监测_日数据表
 * @date 2018/2/27  10:22
 */
@Data
@Table("data_day_food_fume")
public class DataDayFoodFume implements Serializable{

    private static final long serialVersionUID = 915678562707063241L;

    @PrimaryKeyColumn(name = "id", ordinal = 0, type = PrimaryKeyType.PARTITIONED)
    private String id;

    //行政区划code
    @Column(value = "area_code")
    private String areaCode;

    //设备mn号
    @Column(value = "mn")
    private String mn;

    //报文时间
    @PrimaryKeyColumn(name = "packet_date", ordinal = 1, type = PrimaryKeyType.CLUSTERED, ordering = Ordering.DESCENDING)
    private String packetDate;

    //SO2污染物简称_检测值
    @Column(value = "SO2_value")
    private String SO2_value;

    //SO2污染物简称_状态
    @Column(value = "SO2_status")
    private String SO2_status;

    @Column(value = "create_date")
    private String createDate = String.valueOf(System.currentTimeMillis());

}
